{layout name="admin:layout" /}
<div id="actionbar">
    <div class="fn-left">
        <a href="{:url('system/admin.member/index',['types'=>0])}" class="button{if $types == 0} button-green{/if}">正常</a>
        <a href="{:url('system/admin.member/index',['types'=>1])}" class="button{if $types == 1} button-green{/if}">锁定</a>
    </div>
    <div class="fn-left">
        <form id="form" action="{:url('system/admin.member/index')}" method="get">
            <input placeholder="请输入用户完整手机号" class="input w200" type="text" name="keyword" value="{$keyword}" />
            <input type="submit" value="搜索" class="button" />
        </form>
    </div>
    <div class="fn-right">
        <a href="{:url('system/admin.member/add')}" class="button button-blue"><i class="iconfont icon-add_icon"></i>增加</a>
    </div>
</div>
<table class="table table-border">
    <thead>
        <tr>
            <th class="w50 fn-tac">#</th>
            <th class="w210">管理</th>
            <th class="w100">手机号</th>
            <th>昵称</th>
            <th class="w140">登录IP</th>
            <th class="w140">登录时间</th>
            <th class="w140">创建时间</th>
            <th class="w70 fn-tac">状态</th>
        </tr>
    </thead>
    <tbody>
        {foreach $list as $vo}
        <tr>
            <td class="fn-tac li">{$vo['id']}</td>
            <td class="button-group">
                <a class="button button-green" href="{:url('system/admin.member/manage',['uid'=>$vo.id])}" title="管理中心" target="_blank"><i class="iconfont icon-text_icon"></i>管理中心</a>
                <a class="button" href="{:url('system/admin.member/edit',['id'=>$vo.id])}" title="编辑"><i class="iconfont icon-edit"></i>编辑</a>
            </td>
            <td>{$vo.phone_id}</td>
            <td>{$vo.username}</td>
            <td>{$vo.login_ip}</td>
            <td>{$vo->login_time|date='Y-m-d H:i'}</td>
            <td>{$vo->create_time|date='Y-m-d H:i'}</td>
            <td class="fn-tac li">
                <a class="isLock" url="{:url('system/admin.member/islock',['id'=>$vo.id])}" href="javascript:;" title="锁定/解锁">
                {if $vo.is_lock}<span class="badge bg-red">锁定</span>{else}<span class="badge">正常</span>{/if}
                </a>
            </td>
        </tr>
        {/foreach}
    </tbody>
</table>
{$list|raw}
<script type="text/javascript">
Do('base', 'layer', function () {
    $('.isDel').isDel();
    $('.isLock').actUrl();
})
</script>